<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>登陆界面</title>
    <script src="./layui/layui.js"></script>
    <script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="./layui/css/layui.css" media="all">
    <link rel="stylesheet" href="./style/admin.css" media="all">
    <link rel="stylesheet" href="./style/login.css" media="all">
</head>
<body>
<form method="post" action="web_CheckLoginServlet">
<div class="layadmin-user-login layadmin-user-display-show" id="LAY-user-login" style="display: none;">

    <div class="layadmin-user-login-main">
        <div class="layadmin-user-login-box layadmin-user-login-header">
            <h2>考勤系统</h2>
        </div>
        <div class="layadmin-user-login-box layadmin-user-login-body layui-form">
            <div class="layui-form-item">
                <label class="layadmin-user-login-icon layui-icon layui-icon-username" for="name"></label>
                <input type="text" name="username" id="name" lay-verify="required" placeholder="用户名" class="layui-input">
            </div>
            <div class="layui-form-item">
                <label class="layadmin-user-login-icon layui-icon layui-icon-password" for="passwd"></label>
                <input type="password" name="password" id="passwd" lay-verify="required" placeholder="密码" class="layui-input">
            </div>
            <form action="" class="layui-form">
                <div class="layui-input-item">
                    <label class="layui-form-label">你的身份:</label>
                    <input type="radio" name="entity" value="0" title="学生" checked="">
                    <input type="radio" name="entity" value="1" title="教师">
                    <input type="radio" name="entity" value="2" title="管理员">
                </div>
            </form>


            <div class="layui-form-item">
                <button class="layui-btn layui-btn-fluid" lay-submit lay-filter="LAY-user-login-submit" id="loginn" type="submit" >登 入</button>
            </div>

            <div class="layui-trans layui-form-item layadmin-user-login-other">
                <a href="web_reg.jsp" class="layadmin-user-jump-change layadmin-link">注册帐号</a>
            </div>
        </div>
    </div>

    <div class="layui-trans layadmin-user-login-footer">

        <p>© All Rights Reserved</p>

    </div>

    <!--<div class="ladmin-user-login-theme">
      <script type="text/html" template>
        <ul>
          <li data-theme=""><img src="{{ layui.setter.base }}style/res/bg-none.jpg"></li>
          <li data-theme="#03152A" style="background-color: #03152A;"></li>
          <li data-theme="#2E241B" style="background-color: #2E241B;"></li>
          <li data-theme="#50314F" style="background-color: #50314F;"></li>
          <li data-theme="#344058" style="background-color: #344058;"></li>
          <li data-theme="#20222A" style="background-color: #20222A;"></li>
        </ul>
      </script>
    </div>-->

</div>
</form>
<script >
    layui.use('form',function(){
        var form=layui.form;
        form.render();
    });
</script>
<!--<script type="text/javascript" >
    function  login()
    {
        var name=$('#name').val();
        var password=$('#passwd').val();
        var entity=$('input[name="entity"]:checked').val();
        $.ajax({
            async:false,
            type:"post",
            url:"/WebRoot/web_CheckLoginServlet",//通讯地址
            data: {
                'name':name,
                'password':password,
                'entity':entity
            },//发送到服务器的数据
            dataType:"text",//传回来的数据类型
            success:function (res){
                if(res=="success"){
                    alert("登陆成功");
                    //window.location.href="/manage/web_MainForm.jsp";
                }
                else{
                    alert("登陆失败");
                    //window.location.href="/WebRoot/web_reg.jsp";
                }
            },
            error:function (res){
                alert(res);
            }
        });
    }
</script>-->

</body>
</html>
